package lwk.function;

import java.util.function.Function;

/**
 * @author:lwk
 * @create: 2022-08-18 22:20
 * @Description: Function函数式接口
 */
public class Demo01 {
    public static void main(String[] args) {

//        Function<String, String> function = new Function<>() {
//            @Override
//            public String apply(String s) {
//                return s;
//            }
//        };

        Function<String, String> function = s -> s;

        System.out.println(function.apply("fun test"));
    }
}
